import request from '@/utils/request'

// GET /api/cockpit/admin/getBusinessOpportunities
// 销售商机
export function getBusinessOpportunities(data) {
  return request({
    url: '/api/cockpit/admin/getBusinessOpportunities',
    method: 'get',
    params: data
  })
}
// GET /api/cockpit/admin/getBusinessOpportunitiesStage30
// 30%以上商机
export function getBusinessOpportunitiesStage30(data) {
  return request({
    url: '/api/cockpit/admin/getBusinessOpportunitiesStage30',
    method: 'get',
    params: data
  })
}
// GET /api/cockpit/admin/getCourseCapacity
// 产能数据
export function getCourseCapacity(data) {
  return request({
    url: '/api/cockpit/admin/getCourseCapacity',
    method: 'get',
    params: data
  })
}
// GET /api/cockpit/admin/getFinance
// 运营财务数据
export function getFinance(data) {
  return request({
    url: '/api/cockpit/admin/getFinance',
    method: 'get',
    params: data
  })
}
// GET /api/cockpit/admin/getGrossProfit
// 运营毛利数据
export function getGrossProfit(data) {
  return request({
    url: '/api/cockpit/admin/getGrossProfit',
    method: 'get',
    params: data
  })
}
// GET /api/cockpit/admin/getNewSignContractAmount
// 产品销售金额数据
export function getNewSignContractAmount(data) {
  return request({
    url: '/api/cockpit/admin/getNewSignContractAmount',
    method: 'get',
    params: data
  })
}
// GET /api/cockpit/admin/getNewSignData
// 新签和同数量及其金额
export function getNewSignData(data) {
  return request({
    url: '/api/cockpit/admin/getNewSignData',
    method: 'get',
    params: data
  })
}
// GET /api/cockpit/admin/getOnLineCourseStock
// 在线课程生成管理库存情况
export function getOnLineCourseStock(data) {
  return request({
    url: '/api/cockpit/admin/getOnLineCourseStock',
    method: 'get',
    params: data
  })
}
//   GET /api/cockpit/admin/getPaymentCollectAmount
// 周期回款
export function getPaymentCollectAmount(data) {
  return request({
    url: '/api/cockpit/admin/getPaymentCollectAmount',
    method: 'get',
    params: data
  })
}
// GET /api/cockpit/admin/getProductNewSignContractAmount
// 产品销售金额数据
export function getProductNewSignContractAmount(data) {
  return request({
    url: '/api/cockpit/admin/getProductContractAmount',
    method: 'get',
    params: data
  })
}

// GET /api/cockpit/admin/getOnLineCourseOperation
// 在线事业部运营数据
export function getProductContractAmount(data) {
  return request({
    url: '/api/cockpit/admin/getProductContractAmount',
    method: 'get',
    params: data
  })
}
